.class public Lcom/arellomobile/android/push/PackageRemoveReceiver;
.super Landroid/content/BroadcastReceiver;
.source "PackageRemoveReceiver.java"


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 12
    invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V

    return-void
.end method

.method private sendPackageRemoved(Landroid/content/Context;Ljava/lang/String;)V
    .locals 2
    .parameter "context"
    .parameter "packageName"

    .prologue
    .line 34
    :try_start_0
    new-instance v1, Lcom/arellomobile/android/push/PackageRemoveReceiver$1;

    invoke-direct {v1, p0, p1, p2}, Lcom/arellomobile/android/push/PackageRemoveReceiver$1;-><init>(Lcom/arellomobile/android/push/PackageRemoveReceiver;Landroid/content/Context;Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    .line 49
    .local v1, task:Landroid/os/AsyncTask;,"Landroid/os/AsyncTask<Ljava/lang/Void;Ljava/lang/Void;Ljava/lang/Void;>;"
    invoke-static {v1}, Lcom/arellomobile/android/push/utils/executor/ExecutorHelper;->executeAsyncTask(Landroid/os/AsyncTask;)V

    .line 50
    .end local v1           #task:Landroid/os/AsyncTask;,"Landroid/os/AsyncTask<Ljava/lang/Void;Ljava/lang/Void;Ljava/lang/Void;>;"
    :goto_0
    return-void

    .line 43
    :catch_0
    move-exception v0

    .line 46
    .local v0, e:Ljava/lang/Throwable;
    invoke-static {p1, p2}, Lcom/arellomobile/android/push/DeviceFeature2_5;->sendAppRemovedData(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_0
.end method


# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .locals 4
    .parameter "context"
    .parameter "intent"

    .prologue
    .line 17
    const-string v2, "android.intent.action.PACKAGE_REMOVED"

    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_1

    .line 27
    :cond_0
    :goto_0
    return-void

    .line 20
    :cond_1
    invoke-virtual {p2}, Landroid/content/Intent;->getData()Landroid/net/Uri;

    move-result-object v1

    .line 21
    .local v1, uri:Landroid/net/Uri;
    if-eqz v1, :cond_2

    invoke-virtual {v1}, Landroid/net/Uri;->getSchemeSpecificPart()Ljava/lang/String;

    move-result-object v0

    .line 23
    .local v0, pkg:Ljava/lang/String;
    :goto_1
    if-eqz v0, :cond_0

    .line 26
    invoke-direct {p0, p1, v0}, Lcom/arellomobile/android/push/PackageRemoveReceiver;->sendPackageRemoved(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_0

    .line 21
    .end local v0           #pkg:Ljava/lang/String;
    :cond_2
    const/4 v0, 0x0

    goto :goto_1
.end method
